﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020007EF RID: 2031
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetRogueHandbookDataScRsp : IMessage<GetRogueHandbookDataScRsp>, IMessage, IEquatable<GetRogueHandbookDataScRsp>, IDeepCloneable<GetRogueHandbookDataScRsp>, IBufferMessage
	{
		// Token: 0x170019CF RID: 6607
		// (get) Token: 0x06005B18 RID: 23320 RVA: 0x000F492D File Offset: 0x000F2B2D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetRogueHandbookDataScRsp> Parser
		{
			get
			{
				return GetRogueHandbookDataScRsp._parser;
			}
		}

		// Token: 0x170019D0 RID: 6608
		// (get) Token: 0x06005B19 RID: 23321 RVA: 0x000F4934 File Offset: 0x000F2B34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetRogueHandbookDataScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170019D1 RID: 6609
		// (get) Token: 0x06005B1A RID: 23322 RVA: 0x000F4946 File Offset: 0x000F2B46
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetRogueHandbookDataScRsp.Descriptor;
			}
		}

		// Token: 0x06005B1B RID: 23323 RVA: 0x000F494D File Offset: 0x000F2B4D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetRogueHandbookDataScRsp()
		{
		}

		// Token: 0x06005B1C RID: 23324 RVA: 0x000F4958 File Offset: 0x000F2B58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetRogueHandbookDataScRsp(GetRogueHandbookDataScRsp other) : this()
		{
			this.handbookInfo_ = ((other.handbookInfo_ != null) ? other.handbookInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06005B1D RID: 23325 RVA: 0x000F49A4 File Offset: 0x000F2BA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetRogueHandbookDataScRsp Clone()
		{
			return new GetRogueHandbookDataScRsp(this);
		}

		// Token: 0x170019D2 RID: 6610
		// (get) Token: 0x06005B1E RID: 23326 RVA: 0x000F49AC File Offset: 0x000F2BAC
		// (set) Token: 0x06005B1F RID: 23327 RVA: 0x000F49B4 File Offset: 0x000F2BB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueHandbook HandbookInfo
		{
			get
			{
				return this.handbookInfo_;
			}
			set
			{
				this.handbookInfo_ = value;
			}
		}

		// Token: 0x170019D3 RID: 6611
		// (get) Token: 0x06005B20 RID: 23328 RVA: 0x000F49BD File Offset: 0x000F2BBD
		// (set) Token: 0x06005B21 RID: 23329 RVA: 0x000F49C5 File Offset: 0x000F2BC5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06005B22 RID: 23330 RVA: 0x000F49CE File Offset: 0x000F2BCE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetRogueHandbookDataScRsp);
		}

		// Token: 0x06005B23 RID: 23331 RVA: 0x000F49DC File Offset: 0x000F2BDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetRogueHandbookDataScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.HandbookInfo, other.HandbookInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06005B24 RID: 23332 RVA: 0x000F4A2C File Offset: 0x000F2C2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.handbookInfo_ != null)
			{
				num ^= this.HandbookInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06005B25 RID: 23333 RVA: 0x000F4A81 File Offset: 0x000F2C81
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005B26 RID: 23334 RVA: 0x000F4A89 File Offset: 0x000F2C89
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005B27 RID: 23335 RVA: 0x000F4A94 File Offset: 0x000F2C94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.handbookInfo_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.HandbookInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005B28 RID: 23336 RVA: 0x000F4AF0 File Offset: 0x000F2CF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.handbookInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.HandbookInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005B29 RID: 23337 RVA: 0x000F4B48 File Offset: 0x000F2D48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetRogueHandbookDataScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.handbookInfo_ != null)
			{
				if (this.handbookInfo_ == null)
				{
					this.HandbookInfo = new RogueHandbook();
				}
				this.HandbookInfo.MergeFrom(other.HandbookInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005B2A RID: 23338 RVA: 0x000F4BB0 File Offset: 0x000F2DB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005B2B RID: 23339 RVA: 0x000F4BBC File Offset: 0x000F2DBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 58U)
				{
					if (num != 88U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.handbookInfo_ == null)
					{
						this.HandbookInfo = new RogueHandbook();
					}
					input.ReadMessage(this.HandbookInfo);
				}
			}
		}

		// Token: 0x04002356 RID: 9046
		private static readonly MessageParser<GetRogueHandbookDataScRsp> _parser = new MessageParser<GetRogueHandbookDataScRsp>(() => new GetRogueHandbookDataScRsp());

		// Token: 0x04002357 RID: 9047
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002358 RID: 9048
		public const int HandbookInfoFieldNumber = 7;

		// Token: 0x04002359 RID: 9049
		private RogueHandbook handbookInfo_;

		// Token: 0x0400235A RID: 9050
		public const int RetcodeFieldNumber = 11;

		// Token: 0x0400235B RID: 9051
		private uint retcode_;
	}
}
